// 混入数据和函数

export default {
  name: 'MixinsTestMain',
  components: {},
  props: {},
  data() {
    const date = new Date()
    date.setMonth(date.getMonth() - 1)
    const initDate = this.tools.formate(date, 'yyyy-MM-dd') // 默认查询上个月数据

    return {
      mixinData: 'mixin中的变量',
      monthly: initDate, // 选择年月
      listData: []
    }
  },
  computed: {},
  mounted() {
  },
  methods: {
    getListData() {
      const res = {
        data: [
          { id: '001', name: 'aimi', age: '18' },
          { id: '002', name: 'jack', age: '23' },
          { id: '003', name: 'charli', age: '16' },
          { id: '004', name: 'tom', age: '26' }
        ]
      }
      const resData = res.data
      return resData
      // console.log('000_',this.listData);
    }
  }
}

